<template>
    <el-menu :default-active="currentActiveMenu" :router="true" class="border border-black border-r-0 h-[calc(100vh-60px)]">
        <MenuItem v-for="item in $store.state.leftMenu" :key="item.path" :item="item" />
    </el-menu>
</template>

<script setup>
import MenuItem from '@/components/MenuItem.vue'; // 引入递归菜单项组件
const currentActiveMenu = localStorage.getItem("currentMenu") ? localStorage.getItem("currentMenu") : "/welcome"
</script>

<style scoped>
.el-header {
    padding: 0;
}
</style>
